import request from '@/utils/request'

// 查询冲回年终奖列表
export function listNzjch(query) {
  return request({
    url: '/basebill/nzjch/list',
    method: 'get',
    params: query
  })
}

// 查询冲回年终奖详细
export function getNzjch(fid) {
  return request({
    url: '/basebill/nzjch/' + fid,
    method: 'get'
  })
}

// 新增冲回年终奖
export function addNzjch(data) {
  return request({
    url: '/basebill/nzjch',
    method: 'post',
    data: data
  })
}

// 修改冲回年终奖
export function updateNzjch(data) {
  return request({
    url: '/basebill/nzjch',
    method: 'put',
    data: data
  })
}

// 删除冲回年终奖
export function delNzjch(fid) {
  return request({
    url: '/basebill/nzjch/' + fid,
    method: 'delete'
  })
}

//导入冲回年终奖
export function importNzjch(fid) {
  return request({
    url: '/basebill/nzjch/importNzjch/' + fid,
    method: 'get'
  })
}
